package com.xingkeduo.dto.transter.hairstyle;

import com.xingkeduo.utils.ResponseUtils;
import lombok.Data;

@Data
public class CommentHairStyle {
    private int error;
    private Object reason;
    private String content;

    public void covert(ResponseUtils responseUtils) {
        this.error=responseUtils.getStatus()==1?0:1;
        this.reason = responseUtils.getMsg();
        this.content=responseUtils.getStatus()==1?"成功":"失败";

    }
}
